/*
 * timer.h
 *
 *  Created on: May 16, 2011
 *      Author: Nicholas Swartzendruber
 */

/*****************************************
 * Defines
 *****************************************/
#ifndef TRUE
#define TRUE 1
#endif
#ifndef FALSE
#define FALSE 0
#endif

#define DEFAULT_MS 10

/*****************************************
 * Typedefs
 *****************************************/
typedef struct {
	int ms;
	short int stop;
} timer_str;

typedef timer_str * timer;

/*****************************************
 * Prototypes
 *****************************************/
timer timer_initialize(void);
void timer_start(timer);
void  * timer_thread_start(timer);
void timer_stop(timer);

